package com.itqf.ipmsys.service.impl;

import com.itqf.ipmsys.entity.Parking;
import com.itqf.ipmsys.mapper.ParkingMapper;
import com.itqf.ipmsys.service.ParkingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 停车位表 服务实现类
 * </p>
 *
 * @author corn
 * @since 2021-10-10
 */
@Service
public class ParkingServiceImpl extends ServiceImpl<ParkingMapper, Parking> implements ParkingService {

    @Resource
    private ParkingMapper parkingMapper;

    /**
     * 查询停车位总数
     *
     * @return
     */
    @Override
    public Integer findParkingCount() {
        Integer count = parkingMapper.selectCount(null);
        return count;
    }
}
